package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 功能区对象
 * @Author: duanhongxiang
 * @Date: 2024/6/13 20:59
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_func_area")
@ApiModel(value="FuncArea对象", description="功能区对象")
public class FuncArea extends BaseEntity {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "功能区code")
    @TableField("func_code")
    private String funcCode;

    @ApiModelProperty(value = "功能区名称")
    @TableField("func_name")
    private String funcName;

    @ApiModelProperty(value = "取值排序 取值越大排名越前")
    @TableField("ordinal")
    private Integer ordinal;

    @ApiModelProperty(value = "组织部门id")
    @TableField("dept_id")
    private String deptId;

    @ApiModelProperty(value = "组织部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty(value = "父级id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "级别 1：功能区 2：街道 3：商圈")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "围栏,格式：lng,lat;lng,lat#lng,lat;lng,lat  不同经纬度之间用;分隔，不同围栏用#分隔")
    @TableField("fence")
    private String fence;

    @ApiModelProperty(value = "围栏中心点,格式：lng,lat#lng,lat 不同围栏中心点用#分隔")
    @TableField("center_point")
    private String centerPoint;

    @ApiModelProperty(value = "围栏(Polygon格式)")
    @TableField(exist = false)
    private String boundaryStr;

    @ApiModelProperty(value = "待更新客户关联的FuncCode")
    @TableField(exist = false)
    private List<String> resetChildCodes;

    @ApiModelProperty(value = "待更新客户关联的功能区code")
    @TableField(exist = false)
    private String areaCode;
}
